package xyz.weblade.test.practice;

import xyz.weblade.beans.BeanFactoryAware;
import xyz.weblade.beans.BeansException;
import xyz.weblade.beans.factory.BeanFactory;
import xyz.weblade.beans.factory.ConfigurableListableBeanFactory;
import xyz.weblade.beans.factory.config.BeanFactoryPostProcessor;

public class BeanFactoryPostProcessorAndBeanFactoryAware implements BeanFactoryPostProcessor, BeanFactoryAware {

    private String beanFactory;
    @Override
    public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
        this.beanFactory = beanFactory.toString();
    }

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        System.out.println("我猜打印出来是null值"+beanFactory);
    }
}
